import Vue from 'vue'
import Router from 'vue-router'
import Signin from '@/components/Signin'
import Index from '@/components/Index'
import Forget from '@/components/Forget'
import Manage from '@/components/Manage'
import Settings from '@/components/Settings'
import Error from '@/components/Error'
// import axios from 'axios'
Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [{
            path: '/signin',
            name: 'Signin',
            component: Signin
        },
        {
            path: '/forget',
            name: 'Forget',
            component: Forget,
        },
        {
            path: '/manage/*',
            name: 'Manage',
            component: Manage,
        },
        {
            path: '/settings',
            name: 'Settings',
            component: Settings,
        }, {
            path: '/error',
            name: 'Error',
            component: Error,
        },
        {
            path: '/*',
            name: 'Index',
            component: Index,
        },


    ]
})